<?php
abstract class View {
	public static function showPrompt() {
		$u = ($v = ModelUser::getInstance())
			? $v->getNick().'@'.$v->getHost()
			: "nobody@nowhere";
		$d = date("h:i");
		echo "[$u][$d]\n[~/] % ";
	}
	
	public static function display($f, $nl = true) {
		ob_start();
		include $f;
		$v = ob_get_clean();
		self::show($v, $nl);
	}
	
	public static function show($f, $nl = true) {
		echo $nl ? trim($f)."\n" : $f;
	}
}